public class studentTest {
    public static void main(String[] args){
        //创建学生对象
        Student student = new Student();
        //调用父类
        student.setName("张小三");
        student.setAge(15);
        student.setGender("男");
        student.setSubject("计算机");
        student.eat();
        //student.speak();
        //调用自身方法
        student.study();
    }
}
